From: Florian Müllner Date: Wed, 10 Jul 2013 00:06:05 +0000 (+0200) Subject: st-theme-node: Don't update resources on each paint X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3963 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f9b32474b090bf4aa5baa615fa593a7464a94955;p=gnome-shell.git st-theme-node: Don't update resources on each paint Up to commit 318283fc705bd9e9, resources were only updated when the allocated size had changed. There is no good reason to change this for theme nodes without box shadows. https://bugzilla.gnome.org/show_bug.cgi?id=703909 --- diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c index 438802993..1a2cea316 100644 --- a/src/st/st-theme-node-drawing.c +++ b/src/st/st-theme-node-drawing.c @@ -2397,7 +2397,7 @@ st_theme_node_paint (StThemeNode *node, node->rendered_once = TRUE; } - else + else if (state->alloc_width != width || state->alloc_height != height) st_theme_node_update_resources (state, node, width, height); /* Rough notes about the relationship of borders and backgrounds in CSS3;